<!-- /.section, /#navigation -->
<script type="text/javascript" charset="utf-8">
			/* Global var for counter */
			
			$(document).ready(function() {
				$('#example').dataTable();
			} );
			</script>
<div id="main-wrapper">
  <div id="main" class="clearfix with-navigation">
    <div id="content" class="column">
    	 <div class="breadcrumb" ><h3>elect List </h3></div>
      <div class="section">
      	<!--{$htmlErrMsg}-->
        
        <div id="content-area" style="min-height: 300px">
          	<div style="height: 20px" id="container" ></div>
            <div>
					<div id="demo">
						<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
							<thead>
								<tr>
									<th>ID</th>
									<th>TITLE</th>
									<th>START DATE</th>
									<th>END DATE</th>
									<th>STATUS</th>
									<th>VOTE</th>
								</tr>
							</thead>
							<tbody>
							<!--{section name=cnt loop=$electInfoArr}-->
								<tr>
									<td><!--{$electInfoArr[cnt].id|escape}--></td>
									<td>
										<a href="<!--{$smarty.const.HTTP_URL}-->elect/elect.php?mode=seeElectDetail&id=<!--{$electInfoArr[cnt].id|escape}-->">
										<!--{$electInfoArr[cnt].elect_title|escape}-->
										</a>
									</td>
									<td><!--{$electInfoArr[cnt].start_time|escape}--></td>
									<td><!--{$electInfoArr[cnt].close_time|escape}--></td>
									<td><!--{$electInfoArr[cnt].electStatus|escape}--></td>
									<!--{if $electInfoArr[cnt].canVote && $electInfoArr[cnt].electStatus eq "Active"}-->
										<td>
											<a href="<!--{$smarty.const.HTTP_URL}-->elect/elect_vote.php?mode=showThcanVote&id=<!--{$electInfoArr[cnt].id|escape}-->">Vote</a> 
										</td>
									<!--{elseif $electInfoArr[cnt].canVote && $electInfoArr[cnt].electStatus eq "Waiting"}-->
										<td>
											Waiting
										</td>
									<!--{elseif $electInfoArr[cnt].canVote && $electInfoArr[cnt].electStatus eq "Ended"}-->
										<td>
											Ended
										</td>
									<!--{else}-->
										<td>
											Voted
										</td>
									<!--{/if}-->
									
								</tr>
							<!--{/section}-->
							</tbody>
						</table>
					</div>
            </div>
        </div>
      </div>
    </div>
    <!-- /.section, /#content -->
  </div>
</div>
<!-- /#main, /#main-wrapper -->
